/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.credit.rule.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.zx.credit.rule.entity.TcreditRule;
import com.jeesite.modules.zx.credit.rule.dao.TcreditRuleDao;

/**
 * 学分规则Service
 * @author zpp
 * @version 2020-02-13
 */
@Service
@Transactional(readOnly=true)
public class TcreditRuleService extends CrudService<TcreditRuleDao, TcreditRule> {
	
	/**
	 * 获取单条数据
	 * @param tcreditRule
	 * @return
	 */
	@Override
	public TcreditRule get(TcreditRule tcreditRule) {
		return super.get(tcreditRule);
	}
	
	/**
	 * 查询分页数据
	 * @param tcreditRule 查询条件
	 * @param tcreditRule.page 分页对象
	 * @return
	 */
	@Override
	public Page<TcreditRule> findPage(TcreditRule tcreditRule) {
		return super.findPage(tcreditRule);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param tcreditRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(TcreditRule tcreditRule) {
		super.save(tcreditRule);
	}
	
	/**
	 * 更新状态
	 * @param tcreditRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(TcreditRule tcreditRule) {
		super.updateStatus(tcreditRule);
	}
	
	/**
	 * 删除数据
	 * @param tcreditRule
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(TcreditRule tcreditRule) {
		super.delete(tcreditRule);
	}
	
}